
<h3>Login ...</h3>

<?php

echo form_open('main/perform_login');

echo validation_errors();

echo "<p>Username";
echo form_input('username');
echo "</p>";
echo "<p>Password";
echo form_password('password');
echo "</p>";
echo "<p>";
echo form_submit('login_submit', 'Login');
echo "</p>";

echo form_close();

?>
<a href='<?php echo base_url()."main/signup" ?>'>sign up</a>